package routers

import (
	"github.com/gin-gonic/gin"
	v1 "teacher-helper/api/v1"
	"teacher-helper/middleware"
)

func InitMajorRouter(Router *gin.RouterGroup)  {
	MajorRouter := Router.Group("major").Use(middleware.JWTAuth())
	MajorRouter.GET("getMajorList", v1.GetMajorList)
	MajorRouter.GET("getRoleMajor", v1.GetRoleMajor)
	MajorRouter.GET("getMajorMap", v1.GetMajorMap)
	MajorRouter.POST("addMajor", v1.AddOneMajor)
	MajorRouter.PUT("updateMajor", v1.UpdateMajor)
	MajorRouter.DELETE("deleteMajor", v1.DeleteMajor)
}
